package com.sx.pipeline.ui.task.result

import android.view.View
import com.alibaba.android.arouter.facade.annotation.Route
import com.sx.pipeline.BR
import com.sx.pipeline.R
import com.sx.pipeline.app.base.CYDataBindingBaseActivity
import com.sx.pipeline.arouth.RoutePath
import com.sx.pipeline.databinding.ActReleaseResultBinding
import com.sx.pipeline.ui.task.ReleaseTaskVM


/**
 * @Author: YY
 * @Date: 2022/4/5
 * @Description: 充值结果页面
 */
@Route(path = RoutePath.Mine.RELEASE_RESULT)
class ReleaseResultActivity :
    CYDataBindingBaseActivity<ActReleaseResultBinding, ReleaseTaskVM>(
        R.layout.act_release_result), View.OnClickListener {
//    @JvmField
//    @Autowired(name = "issuccess")
//    var isSuccess: Boolean?=null

    override fun initData() {
        super.initData()
        mBinding.setVariable(BR.onClick, this)
        mBinding.titleBar.leftView.setOnClickListener {
            finish()
        }
//        if (isSuccess == true) {
//            mBinding.ivResult.setImageResource(R.drawable.icon_pay_success)
//            mBinding.titleBar.title = getString(R.string.txt_commit_success)
//            mBinding.tvName.setText(getString(R.string.txt_commit_success))
//            mBinding.tvBack.setText(getString(R.string.txt_back))
//
//        } else {
//            mBinding.ivResult.setImageResource(R.drawable.icon_pay_failed)
//            mBinding.titleBar.title = getString(R.string.txt_pay_failed)
//            mBinding.tvName.setText(getString(R.string.txt_pay_failed))
//            mBinding.tvBack.setText(getString(R.string.txt_try_again))
//            mBinding.tvContent.visibility = View.VISIBLE
//        }
    }

    override fun onClick(v: View?) {
        when (v?.id) {
            //返回
            R.id.tv_back -> finish()
        }
    }

}